import React from "react";
import { Select, Space } from "antd";
import { useTranslation } from "react-i18next";
import { GlobalOutlined } from "@ant-design/icons";
function I18nqh() {
  const { t, i18n } = useTranslation();
  return (
    <div>
      <Select
        prefix={<GlobalOutlined></GlobalOutlined>}
        defaultValue="请选择"
        style={{ width: 120 }}
        onChange={(value) => i18n.changeLanguage(value)}
        options={[
          { value: "zh", label: "中文" },
          { value: "en", label: "English" },
        ]}
      />
    </div>
  );
}

export default I18nqh;
